package com.ytjj.qmyx.admin.controller;

import com.ytjj.common.api.CommonResult;
import com.ytjj.qmyx.admin.model.request.PageSourceRequest;
import com.ytjj.qmyx.admin.service.PageSourceStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 
 *
 * @Version 1.0
 **/
@RestController
@RequestMapping("/pageSource")
public class PageSourceController {

    @Autowired
    private PageSourceStatisticsService pageSourceStatisticsService;

    @PostMapping("/list")
    public CommonResult getPlatList(@RequestBody PageSourceRequest pageSourceRequest) {
        return CommonResult.success(pageSourceStatisticsService.selectList(pageSourceRequest));
    }

}
